import request from '@/utils/request'

//获取
export async function getFeedbacks() {
  let res = await request({
    url: '/feedforms',
    method: 'get',
  })
  return res.data.value;
}
export async function  getTechnologys() {
  let res =  await request({
    url: '/Admins',
    method: 'get',
  })
  return res.data.value;
}
// 删除
export function removeFeedbacks(id){
  return request({
    url: `/feedforms/${id}`,
    method: 'delete'
  })
}

// 增加
export function addFeedbacks(data) {
  return request({
    url: '/feedforms',
    method: 'POST',
    data
  })

}

// 更新
export function updateFeedbacks(parking){
  return  request({  
    url: `/feedforms(${parking.feedformId})`,
    method: 'put',
    data: parking
  })
}
